<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ContentAddEdit.ascx.cs" Inherits="IGlobalist.Cms.Admin.Control.ContentAddEdit" %>
<%@ Register Assembly="TinyMCE" Namespace="IGlobalist.Web.UI" TagPrefix="cc2" %>
<%@ Register Src="ContentNoteList.ascx" TagName="ContentNoteList" TagPrefix="uc2" %>
<%@ Register Src="CmsExtPropertiesForm.ascx" TagName="CmsExtPropertiesForm" TagPrefix="uc1" %>
 
<table border="0" cellpadding="0" cellspacing="0">
<tr>
    <td width="100%" align="center"> 
    <asp:Label runat="server" ID="lblStatus" ForeColor="#1A5688" Font-Bold="True" Font-Size="Medium"/>
    </td>
</tr>
<tr>
    <td>
        <asp:ValidationSummary ID="ErrSummary" runat="server" ShowMessageBox="True" />
    </td>
</tr>
<tr>
    <td>
    <fieldset id="Fieldset2" runat="server">
         <legend><asp:Label ID="Label10"  runat="server"  Text="Content info"></asp:Label> </legend>
    <table>
    
    
    <tr><td colspan="2">Version: 1
    </td></tr>
    <tr>
        <td style="height: 3px">Content Class</td>
        <td style="height: 3px">
                <asp:DropDownList ID="ddlClass" runat="server" AutoPostBack="true" Enabled="False" OnSelectedIndexChanged="ddlClass_SelectedIndexChanged" DataSourceID="ODSClassPage" DataTextField="Name" DataValueField="ID" >
            </asp:DropDownList>
            <asp:ObjectDataSource ID="ODSClassPage" runat="server" SelectMethod="GetClassListByClassTypeID"  TypeName="IGlobalist.Cms.Bll.ClassController">
                <SelectParameters>
                        <asp:Parameter DefaultValue="5" Name="classTypeID" Type="Int16" />
                </SelectParameters>
            </asp:ObjectDataSource>
        </td>
    </tr>
    <tr><td><asp:Label ID="Label1" runat="server" Text="Title"></asp:Label></td>
        <td><asp:TextBox ID="tbTitle" runat="server" ></asp:TextBox>
        &nbsp; &nbsp;
            <asp:RequiredFieldValidator ID="rfvddlPage" runat="server" ControlToValidate="tbTitle"
                ErrorMessage="Require Title" >*</asp:RequiredFieldValidator>
        </td>    
    </tr>
    <tr>
        <td valign="top"><asp:Label ID="Label7" runat="server" Text="Tags"></asp:Label></td>
        <td><asp:TextBox ID="tbtag" runat="server" Rows="4" Height="100px" TextMode="MultiLine" ></asp:TextBox></td>                       
    </tr>
    <tr>
        <td><asp:Label ID="Label8" runat="server" Text="Language"></asp:Label></td>
        <td>
         <asp:DropDownList ID="ddlLanguage" runat="server" DataSourceID="XDSLanguage" DataTextField="name" DataValueField="value"></asp:DropDownList>
         <asp:XmlDataSource ID="XDSLanguage" runat="server" DataFile="~/Admin/XML/Language.xml"
        XPath="//languages/item"></asp:XmlDataSource>   
         </td>                       
    </tr>
    
     <tr>
        <td valign="top"><asp:Label ID="Label3" runat="server" Text="Summary"></asp:Label></td>
        <td>
            <div style="overflow:auto;width:675px">
                <cc2:TinyMCE ID="tinyMCESummary" runat="server" Theme="Advanced"  Resize="false" Height="300px" ToolbarLocation="Top"/>
            </div>            
        </td>                       
    </tr>  
    
     <tr>
        <td valign="top"><asp:Label ID="Label2" runat="server" Text="Content"></asp:Label></td>
        <td>
            <div style="overflow:auto;width:675px">
                <cc2:TinyMCE ID="tinyMCEContent" runat="server"  Theme="Advanced" Resize="false" Height="500px" ToolbarLocation="Top"/>
            </div>
        </td>                       
    </tr> 

    <tr>
        <td><asp:Label ID="Label4" runat="server" Text="Author News"></asp:Label></td>
        <td>
            <asp:TextBox ID="tbAuthorNews" runat="server" ></asp:TextBox></td>                       
    </tr> 

    <tr>
        <td><asp:Label ID="Label6" runat="server" Text="Source"></asp:Label></td>
        <td>
            <asp:TextBox ID="tbSource" runat="server" ></asp:TextBox></td>                       
    </tr> 

    <tr>
        <td><asp:Label ID="Label5" runat="server" Text="Hot News"></asp:Label></td>
        <td><asp:CheckBox ID="cbHot" runat="server" /></td>                          
    </tr> 
    <tr>
        <td><asp:Label ID="Label11" runat="server" Text="Page"></asp:Label></td>
        <td> 
         <asp:DropDownList ID="ddlPage" runat="server" DataTextField="Name" DataValueField="ID" DataSourceID="ODSPage"  >
                            
              </asp:DropDownList><asp:ObjectDataSource ID="ODSPage" runat="server" SelectMethod="GetPageListForBindTree"
             TypeName="IGlobalist.Cms.Bll.PageController">
             <SelectParameters>
                 <asp:Parameter DefaultValue="0" Name="classID" Type="Int64" />
                 <asp:Parameter DefaultValue="0" Name="currentID" Type="Int64" />
             </SelectParameters>
         </asp:ObjectDataSource>
            </td>                       
    </tr>
    
    <tr>
        <td><asp:Label ID="Label12" runat="server" Text="Category"></asp:Label></td>
        <td>
         <asp:DropDownList ID="ddlCategory" runat="server" DataTextField="Name" DataValueField="ID" DataSourceID="ODSCategory"  >
         </asp:DropDownList><asp:ObjectDataSource ID="ODSCategory" runat="server" SelectMethod="GetCategoryTreeForBind"
             TypeName="IGlobalist.Cms.Bll.CategoryController">
             <SelectParameters>
                 <asp:Parameter DefaultValue="0" Name="currentCategoryID" Type="Int64" />
                 <asp:Parameter DefaultValue="0" Name="categoryID" Type="Int64" />
             </SelectParameters>
         </asp:ObjectDataSource>
            &nbsp;
         </td>                       
    </tr>
    </table>
    </fieldset>
    </td>
</tr>


<tr><td><table>
<tr><td > <fieldset id="fsExtend" runat="server">
     <legend><asp:Label ID="Label9"  runat="server"  Text="Ext Properties"></asp:Label> </legend>    
     <uc1:CmsExtPropertiesForm ID="ucCmsExtPropertiesForm" runat="server" />
     </fieldset>
     </td></tr>
</table></td></tr>


<tr><td><table>
    <tr><td>
     <fieldset id="fsExt" runat="server" visible="false">
     <legend><asp:Label ID="lblExt"  runat="server"  Text="Content node"></asp:Label> </legend>             
    <uc2:ContentNoteList ID="ucContentNoteList" runat="server" />
    </fieldset>
    </td></tr>
</table></td></tr>

</table>

<asp:HiddenField runat="server" ID="hdfClassID" Value="0" />
<asp:HiddenField runat="server" ID="hdfPageID" Value="0" />
<asp:HiddenField runat="server" ID="hdfCategoryID" Value="0" />
